﻿/*
 *Copyright (C), 2006-2009, Sunrise Tech. Co., Ltd.
 *SUNRISE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * Created on 2007-11-29
 */
package com.mindao.app.survey.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
 * 
 * 功能说明:调查反馈
 * 
 * @author liguocai
 */
@Entity
@Table(name = "sv_feedback")
public class Feedback  extends BaseModel implements Serializable  {
	public static final int STATUS_CANEL = -1;

	public static final int STATUS_EFFECTIVE = 1;

 
	/**
	 * 如果是指定用户反馈时，必须先保存在这个表中
	 */
	private Long submiter;

	private Date submitDate;

	private SurveyConf surveyConf;

  
	public final Date getSubmitDate() {
		return submitDate;
	}

	public final void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public final Long getSubmiter() {
		return submiter;
	}

	public final void setSubmiter(Long submiter) {
		this.submiter = submiter;
	}

 
	
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "surveyId", nullable = true)
	public final SurveyConf getSurveyConf() {
		return surveyConf;
	}

	public final void setSurveyConf(SurveyConf surveyConf) {
		this.surveyConf = surveyConf;
	}

}
